Skip to main content

Set Name

This script gets the setName of a set with specified setID.

Parameters:

  • setID: The unique ID for the set whose data needs to be read

Returns: String - Name of set with specified setID

import TopShot from 0xTOPSHOTADDRESS

pub fun main(setID: UInt32): String {

let name = TopShot.getSetName(setID: setID)
?? panic("Could not find the specified set")

return name
}